package jsyf.oa.entity.salary;

import com.alibaba.fastjson.JSONObject;

import javax.persistence.Entity;
import javax.persistence.Table;

import jsyf.oa.ientity.BaseEntity;

/**
 * Created by Maqiuqiu on 2018/11/17.
 */
@Entity
@Table(name = "t_sys_salary", schema = "oa", catalog = "")
public class SalaryMainEntity extends BaseEntity {

    private String companyId;
    private String companyName;
    private String month;
    private String url;
    private String name;
    private String createUserId;

    public String getMonth() {
        return month;
    }

    public void setMonth(String month) {
        this.month = month;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", getId());
        obj.put("COMPANY_ID", getCompanyId());
        obj.put("COMPANY_NAME", getCompanyName());
        obj.put("MONTH", getMonth());
        obj.put("URL", getUrl());
        obj.put("NAME", getName());
        obj.put("CREATE_USER_ID", getCreateUserId());
        obj.put("CREATE_TIME", getCreateTime());
        return obj;
    }

    @Override
    public String getTableName() {
        return "t_sys_salary";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("COMPANY_ID", "companyId");
        obj.put("COMPANY_NAME", "companyName");
        obj.put("MONTH", "month");
        obj.put("URL", "url");
        obj.put("NAME", "name");
        obj.put("CREATE_USER_ID", "createUserId");
        obj.put("CREATE_TIME", "createTime");
        return obj;
    }

}
